package com.example.controller;

import com.example.domain.ResponseResult;
import com.example.service.InitService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class InitController {
    @Resource
    private InitService initService;

    //初始化接口，每次刷新页面均会调用，返回基本用户信息与权限信息
    @RequestMapping("/init")
    public ResponseResult init(){
        return initService.init();
    }
}
